<!-- components/CustomNavBar.vue -->
<template>
	<view class="safe-area" />
	<view class="nav-bar">
		<text class="title">{{ title }}</text>
	</view>
</template>

<script setup>
	defineProps({
		title: {
			type: String,
			default: ''
		}
	})
</script>

<style scoped>
	.safe-area {
		height: env(safe-area-inset-top);
	}

	.nav-bar {
		height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: transparent;
	}

	.title {
		font-size: 18px;
		font-weight: bold;
		color: white;
	}
</style>